package com.delivery.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "delivery.thread")//配置属性
@Component// 零件 放在容器中
@Data
public class ThreadPoolConfigProperties {
    private Integer coreSize;//核心线程
    private Integer maxSize;//最大线程
    private Integer keepAliveTime;//保持活动时间
    private Integer queueCapacity; //队列最大长度
}
